POV-Ray : Newsgroups : povray.general : Random thoughts about povray and xml : Re: Random thoughts about povray and xml Server Time
3 Aug 2024 14:13:19 EDT (-0400)
  Re: Random thoughts about povray and xml  
From: Thorsten Froehlich
Date: 21 Mar 2004 13:05:53
Message: <405dd981$1@news.povray.org>
In article <cjameshuff-FC8E81.10072721032004@news.povray.org> , Christopher
James Huff <cja### [at] earthlinknet>  wrote:

>> Christopher James Huff wrote:
>> > Because it's harder to read and write binary data in a portable way.
>>
>> No it's not.
>
> Hmm...yes it is. To write "1.5" in a portable way in text only requires
> writing those three characters. In binary you need to write it byte by
> byte in a known floating point format and byte ordering, regardless of
> what the native machine format is.

This is simply not correct.  You can perfectly represent a floating-point
number with two integers.  In fact, a floating-point number is exactly that!
Consequently, representing it as text gains you nothing except the false
impression that you can get an exact value representation.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.